package com.punch.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.punch.common.dto.login.WXUserDTO;
import com.punch.common.model.LoginUser;
import com.punch.user.model.SysGuardian;

/**
 * 家长服务层
 */
public interface GuardianService extends IService<SysGuardian> {

    /**
     * 根据openId获取监护人信息
     *
     * @param openId openId
     */
    LoginUser getFeignGuardianByOpenId(String openId);

    /**
     * 进行注册,不存在则注册,存在则返回
     *
     * @param wxUserDTO 微信用户表单
     */
    void saveFeignGuardian(WXUserDTO wxUserDTO);
}
